package org.scnu.util;





public class DataTypeConversion {

	//String[] ----->>>Double[]
	
	public static Double[] StringArrayToDouble(String[] array){
		
		Double[] ds=new Double[array.length];
		for(int i=0;i<array.length;i++){
		ds[i]=Double.valueOf(array[i]);
		}
		//打印double型数组
/*		for(double d:ds){
		System.out.println(d);
		}*/
		return ds;
	}
	
	
	
	public static void main(String[] args) {
		
		String[] strs={"111.1","222.2","33.33"};
		Double []  aa = DataTypeConversion.StringArrayToDouble(strs);
	
		for(double d:aa){
			System.out.println(d);
			}
	}

}
